package com.ly.admin.listener;

import com.alibaba.nacos.api.naming.pojo.Instance;
import com.ass.nacos.listener.AbstractInstanceListener;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class AdminServerInstanceListener extends AbstractInstanceListener {


    @Getter
    private final String serviceName ="admin-server";

    @Override
    protected void handel(String serviceName, String groupName, String clusters, List<Instance> instances) {
        log.info("服务名：{},组名：{},集群名：{},实例：{}",serviceName,groupName,clusters,instances);
    }
}
